package net.avh4.scratch.rpg.battle;

import java.util.Random;

import net.avh4.scratch.rpg.model.Stat;


public class MeleeAction extends Action {
	
	private static Random rand = new Random();
	
	private Character source;
	private Character target;
	
	public MeleeAction(Character source, Character target) {
		this.source = source;
		this.target = target;
	}

	@Override
	public void process() {
		//for (Iterator<Character> it = getTargets().iterator(); it.hasNext();) {
		//	Character target = it.next();
			Stat targetHP = target.getStat("HP");
			if (targetHP == null) return;
			targetHP.adjust( -10 - rand.nextInt(5) );
		//}
	}

}
